import { Module } from '@nestjs/common';
import { ManagerModule } from './manager/manager.module';

import { ConfigModule } from '@nestjs/config';
import { getConfig } from './config/index';
import { DatabaseModule } from './common/database/database.module';

@Module({
  imports: [
    // 全局导入ConfigModule
    ConfigModule.forRoot({
      isGlobal: true,
      load: [getConfig]
    }),

    DatabaseModule, // 数据库

    ManagerModule
  ],
  controllers: [],
  providers: []
})
export class AppModule {}
